package com.example.framework.mqtt.core.config;

import com.example.framework.mqtt.core.client.MqttPlatformClient;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * <p>
 *
 * </p>
 *
 * @author sfjiang
 * @since 2024/11/26 17:35
 */
@Configuration
public class MessageListenerInitialization {

    @Bean
    public MessageListenerProcessor messageListenerProcessor(MqttPlatformClient mqttPlatformClient, ApplicationContext applicationContext) {
        return new MessageListenerProcessor(mqttPlatformClient, applicationContext);
    }
}
